<?php

if (!defined('PDNSADMIN') || !defined('PDNS_ADMIN')) {
	header('HTTP/1.0 403 Forbidden');
	die;
}

class php_info extends admin
{
	function execute()
	{
		$this->nohtml = true;

		if (!function_exists('phpinfo')) {
			return $this->message($this->lang->php_error, $this->lang->php_error_msg);
		}

		ob_start();
		phpinfo();
		$phpinfo = ob_get_contents();
		ob_end_clean();

		return $phpinfo;
	}
}
?>
